﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Player : Game
    {
        public Player(string name, string name1) : base(name, name1)
        {

        }
        public int key;
        public void talk1()
        {
            Console.WriteLine("请出拳：{0}", Guess1());
            key = int.Parse(Console.ReadLine());
            Console.Write($"{0}: 出拳：",name);
            Console.WriteLine(Guess());
        }
        public override guess Guess()
        {

            guess g = (guess)key;
            return g;
        }
        static string Guess1()
        {
            string str = null;
            int i = 1;
            foreach (guess t in Enum.GetValues(typeof(guess)))
            {
                str += $"{i}、{t} ";
                i++;
            }
            return str;
        }
    }
}
